﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace RBAC.LuFang.Repository.Migrations
{
    public partial class 请假申请 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Leaveapplications",
                columns: table => new
                {
                    LeaveapplicationId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    LeaveapplicationName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    sectionId = table.Column<int>(type: "int", nullable: false),
                    LeaveapplicationType = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    KDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    SDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Day = table.Column<int>(type: "int", nullable: false),
                    Shi = table.Column<int>(type: "int", nullable: false),
                    BDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    LeaveapplicationDesc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    userName = table.Column<string>(type: "nvarchar(max)", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Leaveapplications", x => x.LeaveapplicationId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Leaveapplications");
        }
    }
}
